using System;
using System.Collections.Generic;
using NHibernate.Mapping.Attributes;
using A=NHibernate.Mapping.Attributes;

namespace SuperMarketManagement.Entity{

    [Class(Name = "Role")]
    public class Role
    {
        [Id(1, Name = "AutoId"), Generator(2, Class = "native")]
        public virtual long AutoId { get; set; }
        [Property]
        public virtual string Name { get; set; }

        public Role()
        {
        }

        public Role(String name)
        {
            Name = name;
        }

    }
}
